package com.doudou.pay.helper.commons;

public class PayRedisKey {
	
	public final static String AUTH_TOKEN_KEY = "auth_token_";
	
	public final static String RESPONSE_PAY_KEY = "resp_pay_";
	
	public final static String PAY_NOTIFY_KEY = "pay_notify_";
	
	public final static String USER_TOKEN_HASH_KEY = "user_auth_hash_";
	
	public static String getAuthTokenKey(String authToken) {
		return AUTH_TOKEN_KEY + authToken;
	}
	
	public static String getResponsePayKey(String sessionKey) {
		return RESPONSE_PAY_KEY + sessionKey;
	}
	
	public static String getPayNotifyKey(String sessionKey) {
		return PAY_NOTIFY_KEY + sessionKey;
	}
	
	public static String getUserTokenHashKey(String userId) {
		return USER_TOKEN_HASH_KEY + userId;
	}
}
